<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<xsl:template match="pagination">
		<xsl:if test="@pagesCount > 1">
			<div class="pagination">
				<xsl:for-each select="page">
					<a class="pagination" href="{@url}">
						<xsl:if test="@active">
							<xsl:attribute name="class">pagination_active</xsl:attribute>
						</xsl:if>
						<xsl:apply-templates/>
					</a>
					<xsl:text>&#160;</xsl:text>
				</xsl:for-each>
			</div>
		</xsl:if>
	</xsl:template>

</xsl:stylesheet>